//
//  GXBaseViewController.h
//  GxDemo
//
//  Created by 甘霞 on 15/10/23.
//  Copyright © 2015年 甘霞. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PrefixHeader.pch"

@class MBProgressHUD;
@interface GXBaseViewController : UIViewController 

/* =================== PROPERTY ================== */

//tableView
@property (nonatomic, retain) UITableView *tableView;
//collectionView
@property (nonatomic, retain) UICollectionView *collectionView;
//瀑布流
@property (nonatomic, retain) UICollectionViewFlowLayout *layout;
//webView
@property (nonatomic, retain) UIWebView *webView;
// wkwenview
//@property (nonatomic, retain) WKWebView *wkWebView;
//底部按钮视图
@property (nonatomic, retain) UIView *buttonView;

//后退
@property (nonatomic, retain) UIButton *backBtn;
//分享
@property (nonatomic, retain) UIButton *shareBtn;
//喜欢
@property (nonatomic, retain) UIButton *likeBtn;
//转发
@property (nonatomic, retain) UIButton *repostBtn;
//评论
@property (nonatomic, retain) UIButton *commentBtn;
//小菊花
@property (nonatomic, retain) MBProgressHUD *hud;
// coreData
@property (nonatomic, retain) CoreDataManager *manager;

@property (nonatomic, retain) UIImageView *flashImage;

/* =================== METHOD ==================== */

//创建 tableView
- (void)createTableViewWithFrame:(CGRect)frame;
//创建 collectionView
- (void)createCollectionViewWithFrame:(CGRect)frame;
//创建 webView
- (void)createWebViewWithFrame:(CGRect)frame URL:(NSURL *)url;
// 创建wkwebview
//- (void)createWKWebViewWithFrame:(CGRect)frame URL:(NSURL *)url;
// 导航栏变透明
- (void)navi;

//底部按钮
//分享/后退`````````````````````````````````````
- (void)createButtomBackButtonIsHiddenShareBtn:(Boolean)isHidden;
//后退/未收藏/转发/评论
- (void)createButtomLikeButton;
// 已收藏
- (void)createButtomUnLikeButton;
// 创建动画未收藏
- (void)createImageViewLike;
// 动画已收藏
- (void)createImageViewUnlike;

//是否隐藏底部按钮
- (void)setHiddenLikeBtnView:(Boolean)isHidden;
//尚未开发的功能
- (void)uncompletedFuntion;
// 小菊花``````````````````````````````````````
- (void)loadNightMBProgress;
// 移除小菊花````````````````````````````````````
- (void)removeHud;
@end
